package com.dab.chat.utils;

import com.dab.chat.ChatProxy;
import com.dab.chat.interfaces.LoadSession;

/**
 * Created by dab on 2018/3/10 13:15
 */

public class ChatHelper {
    private static ChatHelper sInstance;
    private ChatProxy mChatProxy;

    private ChatHelper() {

    }

    public static ChatHelper getInstance() {
        if (sInstance == null) {
            synchronized (ChatHelper.class) {
                if (sInstance == null) {
                    sInstance = new ChatHelper();
                }
            }
        }
        return sInstance;
    }

    public ChatHelper setChatConcrete(ChatProxy chatProxy) {
        mChatProxy = chatProxy;
        return this;
    }

    public void loadSessionList(LoadSession loadSession) {
        mChatProxy.loadSessionList(loadSession);
    }
}
